/**
 * 
 */
package com.xbjtech.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.BusinessMapper;
import com.xbjtech.model.Business;
import com.xbjtech.model.BusinessExample;
import com.xbjtech.model.BusinessExample.Criteria;
import com.xbjtech.service.BusinessService;

/**
 * @author Administrator
 *
 */
@Service
public class BusinessServiceImpl implements BusinessService {

	@Autowired
	BusinessMapper businessMapper;
	
	@Override
	public List<Business> list() {
		BusinessExample example = new BusinessExample();
		Criteria criteria = example.createCriteria();
		criteria.andDeletedEqualTo(0);
		return businessMapper.selectByExample(example);
	}

}
